home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / DefineSprite_423 / frame_4 / DoAction.as
Text File  |  2009-04-14  |  641b  |  31 lines

  1. stop();
  2. xOffset = 102;
  3. minSpread = 25;
  4. maxSpread = 50;
  5. for(var prop in ezWardrobeRollOvers)
  6. {
  7.    clip = ezWardrobeRollOvers[prop];
  8.    clip.onPress = function()
  9.    {
  10.       if(this.baseClip_mc._visible)
  11.       {
  12.          _parent.wears[this.part][this.ID].onPress();
  13.       }
  14.       this.useHandCursor = false;
  15.       this.gotoAndStop(2);
  16.       this.baseClip_mc._visible = false;
  17.    };
  18.    clip.onMouseOver = function()
  19.    {
  20.       _root.sounds.whoosh.start();
  21.       this.gotoAndStop(2);
  22.    };
  23.    clip.onRollOut = function()
  24.    {
  25.       if(this.baseClip_mc._visible)
  26.       {
  27.          this.gotoAndStop(1);
  28.       }
  29.    };
  30. }
  31.